package com.xbongbong.pro.statistic.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 金额单位枚举
 * @author zcp
 * @version v1.0
 * @date 2019/6/12 19:46
 * @since v1.0
 */
@Getter
public enum MoneyUnitEnum {
    /**
     * 金额单位为元，不做国际化处理
     */
    YUAN("yuan", "元"),
    /**
     * 金额单位为万元
     */
    TEN_THOUSAND_YUAN("tenThousandYuan", "enum.moneyUnit.unit.ten_thousand_yuan"),
    ;
    private String alias;
    private String unit;

    MoneyUnitEnum(String alias, String unit) {
        this.alias = alias;
        this.unit = unit;
    }

    public String getUnit() {
        return I18nMessageUtil.getMessage(unit);
    }
}
